import {createRouter,createWebHashHistory} from "vue-router"

// 路由配置
let routes = [
   
   {path:'/',component:()=>import('@/views/LoginPart.vue')},
   {
        path:"/index",component:()=>import("@/views/index/IndexPart.vue" ),children:[
            {path:'/index/classes',component:()=>import('@/views/index/FunClasses.vue')},
            {path:'/index/studyweb',component:()=>import('@/views/index/StudyWeb.vue')},
            {path:'/index/todolist',component:()=>import('@/views/index/TodoList.vue')},
            {path:'/index/article',component:()=>import('@/views/index/ArticleList.vue')},

    ]},
   

]

// 主要需要这个
const router = createRouter({
    history:createWebHashHistory(),
    routes,
})

export  {router,routes};